package com.app.backend.common.constant;


/**
 * 登陆相关
 */
public abstract class LoginConstant {


    /**
     * 从集中平台同步的用户
     */
    public static final byte TYPE_SSO = 0;
    /**
     * 本地创建用户
     */
    public static final byte TYPE_LOCAL = 1;

    /**
     * redis中登陆token的key
     */
    public static final String LOGIN_TOKENS = "app:accToken:";


    /**
     * 登陆记录类型 login
     */
    public static final String LOGIN = "login";

    /**
     * 登陆记录类型 logout
     */
    public static final String LOGOUT = "logout";
    /**
     * 未知ip unknow
     */
    public static final String UNKNOWN = "unknown";
    /**
     * 请求头中 X-Real-IP
     */
    public static final String X_REAL_IP = "X-Real-IP";
    /**
     * 请求头中 X-Forwarded-For
     */
    public static final String X_FORWARDED_FOR = "X-Forwarded-For";
    /**
     * 请求头中 Proxy-Client-IP
     */
    public static final String PROXY_CLIENT_IP = "Proxy-Client-IP";
    /**
     * 请求头中 WL-Proxy-Client-IP
     */
    public static final String WL_PROXY_CLIENT_IP = "WL-Proxy-Client-IP";
    /**
     * 请求中获取的远程地址request.getRemoteAddr
     */
    public static final String REQUEST_GET_REMOTE_ADDR = "request.getRemoteAddr";
    /**
     * 拦截器用拦截的ACCESS_TOKEN_USER
     */
    public static final String ACCESS_TOKEN = "access-token";


    /**
     * 拦截器用拦截的TOKEN_USER
     */
    public static final String SYS_TOKEN = "sys-token";


    /**
     * 系统的token
     */
    public static final String TOKEN_SYSTEM_VCOMMUNITY = "SYSTEM_VCOMMUNITY";

    public static final String CURRENT_USER_NAME = "current_user_name";
    public static final String CURRENT_USER_ID = "current_user_id";
    public static final String CURRENT_USER_TOKEN = "current_user_token";
    public static final String CURRENT_USER_NO = "current_user_no";
    public static final String CURRENT_USER_ORGID = "current_user_org_id";


}
